package com.lwz.factory;

public class TestFactory {

	public static void main(String[] args) {
		HumanFactory f1 = new ManFactory();
		f1.getHuman().laugh();
		f1.getHuman().cry();
		HumanFactory f2 = new WoManFactory();
		f2.getHuman().laugh();
		f2.getHuman().cry();
	}
}
